package util

import (
	"github.com/bububa/opentaobao/core"
	"github.com/bububa/opentaobao/model/util"
)

// TaobaoOpenuidGet 获取授权账号对应的OpenUid
// taobao.openuid.get
//
// 获取授权账号对应的OpenUid
func TaobaoOpenuidGet(clt *core.SDKClient, req *util.TaobaoOpenuidGetAPIRequest, session string) (*util.TaobaoOpenuidGetAPIResponse, error) {
	var resp util.TaobaoOpenuidGetAPIResponse
	err := clt.Post(req, &resp, session)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
